<template>
  <div>
    <div class="com-contain">
      <div class="com-tit">操作说明</div>
      <div class="com-para" v-for="(lt,index) in list" :key="index">
        {{ index + 1 }}、{{ lt.content }}
        <span v-if="lt.additionalFun === 1">
          【<span type="default" @click="downloadTpl" style="color: #3664D8;">委托书模板下载</span>】
        </span>
      </div>
    </div>
  </div>
</template>

<script>
import {apiGetList} from "@/api/eraqNotice"

export default {
  name: "applyNotice",
  data() {
    return {
      list: [],
    }
  },
  props: {
    userType: 0
  },
  created() {
    apiGetList(this.userType).then(res => {
      this.list = (res.code !== 200) ? [] : res.data;
    }).catch(() => {
    });
  },
  methods: {
    downloadTpl: function () {
      ZWJSBridge.saveImage({
        url: "https://qyda.tzscjg.cn:8090/eraq-api/profile/help/auth-letter.docx"
      }).then((result) => {
        console.log(result);
      }).catch((error) => {
        console.log(error);
      });
    }
  }
}
</script>

<style lang='scss' scoped>
@import "src/css/home";
</style>
